<?php 
// $filename=$_POST['filename'];
$filename="1.txt";
header('content-disposition:attachment;filename='.basename($filename));
header('content-length:'.filesize($filename));
readfile($filename);